package models

import "gorm.io/gorm"

type Furniture struct {
	gorm.Model
	Name    string  `gorm:"type:varchar(30); not null"`
	Price   float64 `gorm:"type:decimal(10,2);not null;"`
	Address string  `gorm:"type:varchar(50);not null;"`
	TypesId int64   `gorm:"type:int(11); not null;"`
	BrandId int64   `gorm:"type:int(11); not null;"`
}

type Types struct {
	gorm.Model
	Name string `gorm:"type:varchar(30); not null;"`
}

type Brand struct {
	gorm.Model
	Name string `gorm:"type:varchar(30); not null;"`
}

type Furn struct {
	Furniture
	TypesName string
	BrandName string
}
